home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
mc51bugs
/
q37021
< prev
next >
Wrap
Text File
|
1988-12-12
|
900b
|
37 lines
Q37021 Function stat() Fails to Flag Error in OS/2
C Compiler
5.10
OS/2
Summary:
When run in OS/2, the source code below produces an executable that
fails to flag an error indicating the specified file does not exist.
Microsoft has confirmed this to be a problem in Version 5.10. We are
researching this problem and will post new information as it becomes
available.
More Information:
To demonstrate this problem, compile, link, and run the following code
under OS/2. The stat() function should set errno to ENOENT after
failing to find the nonexistent file "data", but fails to do so.
After a suitable compilation, run the following:
#include<sys\types.h>
#include<sys\stat.h>
#include<errno.h>
struct stat buf;
int i, j, errno ;
main()
{
i=stat("data",&buf);
j=errno;
}
Keywords: buglist5.10
Updated 88/12/13 07:16